package com.citywithincity.utils.dataconvert;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.citywithincity.api.ApiBuildConfig;
import com.citywithincity.db.interfaces.IValueConvert;

public class UnixTime2DateMinite implements IValueConvert {

	@Override
	public Object convert(Object value) {
		if(value==null)return null;
		long v = (Integer)value;
		return new SimpleDateFormat(ApiBuildConfig.DATE_TIME_FORMAT_MINUTE)
				.format(new Date(v*1000));
	}

}
